class ListNode {
    val: number
    next: ListNode | null
    constructor(val?: number, next?: ListNode | null) {
        this.val = (val === undefined ? 0 : val)
        this.next = (next === undefined ? null : next)
    }
}


/**
 * https://leetcode-cn.com/problems/delete-middle-node-lcci/
 * 删除中间节点
 * @param node 
 */
const deleteNode = (node: ListNode) => {
    node.val = node.next!.val;
    node.next = node.next!.next;
};

export { }